import Vue from 'vue'
import Router from 'vue-router'
import login from '@/pages/Login.vue'
import home from '@/pages/home.vue'
import WenZhang from '@/pages/ZiLuYou/WenZhang.vue'
import bianji from '@/pages/ZiLuYou/bianji.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/home',
      name: 'home',
      component: home,
      meta:'首页',
      children:[
        {
          path: 'WenZhang',
          name: 'WenZhang',
          component: WenZhang,
          meta:'文章',
        },
        {
          path: 'bianji',
          name: 'bianji',
          component: bianji,
          meta:'首页',
        }
      ]
    },
  ]
})
